﻿@model DeJC.DAL.Model.Country

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutConfig.cshtml";
}

<h2>Agregar País</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Country</legend>
        <div class="form-style">
            <ul>
                <li>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.LanguageID)
                    </div>
                    <div class="editor-field">
                        @Html.DropDownList("LanguageID","Selecciona un Idioma")
                        @Html.ValidationMessageFor(model => model.LanguageID)
                    </div>                    
                </li>
                <li>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Description)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Description)
                        @Html.ValidationMessageFor(model => model.Description)
                    </div>
                </li>
                <li>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Adjective)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Adjective)
                        @Html.ValidationMessageFor(model => model.Adjective)
                    </div>
                </li>
                <li>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.ImagePath)
                    </div>
                    <div class="editor-field">
                        @Html.EditorFor(model => model.ImagePath)
                        @Html.ValidationMessageFor(model => model.ImagePath)
                    </div>
                </li>
            </ul>
            <hr/>
        </div>

        <p>
            <input type="submit" value="Create" />
                @Html.ActionLink("Back to List", "Index")
        </p>
    </fieldset>
}